// (c)2004 - 2006 Gjokica Zafirovski sunsblog.net

function newWindow(obj, p, w, h, s) {
	var winOpt = "width="+w+",height="+h+",scrollbars="+s;
	var href = p;
	var target = "_blank";
	thisWin = window.open(href,target,winOpt);
}

// write out flash files
function sb_writeflashcode(id,src,w,h,bg,wmode,vars){
    document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ID='" + id + "' WIDTH='" + w + "' HEIGHT='" + h + "'><PARAM NAME='movie' VALUE='" + src + "'><PARAM NAME='quality' VALUE='high'><PARAM NAME='background' VALUE='"+bg+"'><PARAM NAME='wmode' VALUE='" + wmode + "'><PARAM NAME='flashvars' VALUE='"+vars+"'><embed id='"+id+"_embed' src='" + src + "' quality='high' width='" + w +"' height='" + h +"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' background='" + bg + "' wmode='" + wmode + "' flashvars='"+vars+"'></embed></OBJECT>");
}

